package com.kuaimacode.kframework.mybatis.models.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 用户地址
 */
@Data
@TableName("user_address")
//@ApiModel(value="Address-地址")
public class Address implements java.io.Serializable {
    @TableField(exist=false)
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "地址")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "详细")
    @TableField("detail")
    private String detail;

    @ApiModelProperty(value = "省市区")
    @TableField("summary")
    private String summary;

    @ApiModelProperty(value = "楼层门牌号")
    @TableField("doorplate")
    private String doorplate;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private String latitude;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "电话号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_at")
    private Date updateAt;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_at")
    private Date createAt;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;


    @ApiModelProperty(value = "用户手机号")
    @TableField(exist = false)
    private String userName;

    @ApiModelProperty(value = "删除标志")
    @TableField("delete_state")
    private Short deleteState;

    @ApiModelProperty(value = "是否常用地址 1-常用 0 不常用")
    @TableField("usual")
    private Short usual;
}
